package cn.wolfcode.wolf2w.service;


import cn.wolfcode.wolf2w.domain.Strategy;
import cn.wolfcode.wolf2w.domain.Travel;
import cn.wolfcode.wolf2w.query.TravelQuery;
import org.springframework.data.domain.Page;

import java.util.List;

public interface ITravelService {
    void save(Travel strategy);

    void update(Travel strategy);

    void delete(String id);

    Travel get(String id);

    List<Travel> list();

    Page<Travel> query(TravelQuery qo);

    void saveOrUpdate(Travel travel);

    /*
    * 修改审核状态，是否通过
    * */
    void changeStateById(String id, int state);

    List<Travel> viewnumTop3(String id);

    List<Travel> queryByDestName(String destname);
}
